package org.liziyi.pss.entity;

/**
 * 进程控制块pcb
 *
 * @author liziyi
 */
public class ProcessControlBlock {
    private Integer pid;
    private Integer timeSlice;
    private Integer totalTimeSlice;
    /**
     * 该值越小，优先级越高
     */
    private Integer priority;
    private Integer memoryNeed;
    private String state;
    private String attribute;
    private int[] memoryUsed;


    public Integer getPid() {
        return pid;
    }

    public Integer getTimeSlice() {
        return timeSlice;
    }

    public Integer getPriority() {
        return priority;
    }

    public Integer getMemoryNeed() {
        return memoryNeed;
    }

    public String getState() {
        return state;
    }

    public String getAttribute() {
        return attribute;
    }

    public Integer getTotalTimeSlice() {
        return totalTimeSlice;
    }

    public int[] getMemoryUsed() {
        return memoryUsed;
    }

    public void setPid(Integer pid) {
        this.pid = pid;
    }

    public void setTimeSlice(Integer timeSlice) {
        this.timeSlice = timeSlice;
    }

    public void setPriority(Integer priority) {
        this.priority = priority;
    }

    public void setMemoryNeed(Integer memoryNeed) {
        this.memoryNeed = memoryNeed;
    }

    public void setState(String state) {
        this.state = state;
    }

    public void setAttribute(String attribute) {
        this.attribute = attribute;
    }

    public void setTotalTimeSlice(Integer totalTimeSlice) {
        this.totalTimeSlice = totalTimeSlice;
    }

    public void setMemoryUsed(int[] memoryUsed) {
        this.memoryUsed = memoryUsed;
    }
}
